package com.navajo.mvc.test;

import com.navajo.mvc.Controller;
import com.navajo.mvc.Model;

public class Main {

	public Main() {
	}

	static class MyController extends Controller {

		public MyController() {
			super();
		}

	}

	static class MyModel extends Model {

		private String value;

		public String getValue() {
			return value;
		}

		public MyModel() {
			super();
		}

		public void setValue(String value) {
			this.value = value;
			setChanged();

			notifyObservers(value);

		}

	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		MyController controller = new MyController();
		MyModel model = new MyModel();

		controller.setModel(model);

		model.setValue("hallo");

	}

}
